package com.zx.controller.pageSkip.merchandise;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sunkai
 * @date 2022/8/25 0025 21:36
 * @mood zhou xun
 */
@Controller
@RequestMapping("/merchandise/skip")
public class MerchandiseSkip {
    @GetMapping("/item/{id}")
    public String gotoItem(@PathVariable Integer id, Model model){
        model.addAttribute("id",id);
        return "item";
    }
}
